var express=require('express'); 
var app = express(); 
var json_cont = {"cont":0};

app.get('/', function (req, res) {
    res.send('<h2>Contador:</h2><p>'+((eval(json_cont).cont++)+1)+'</p>'); 
});
app.post('/', function (req, res) {
    res.send(JSON.stringify(json_cont)+"\n"); 
});
app.listen(8080); 
console.log('Server running at http://127.0.0.1:8080/');
